require("assets/css/iconfont/iconfont");
require("assets/css/common");
require("./index");

import api from 'assets/js/api/index'

// 启用mock模拟接口 如需关闭将OPEN_MOCK改为CLOSE_MOCK即可
process.env.OPEN_MOCK && require('@/mock/index')

// es6语法
let a = {a:1,b:2}
let c = {c:3}

let d = {...a,...c};

// es7语法
function cc(){
    return new Promise((resolve, reject)=>{
        let sino = parseInt(Math.random() * 6 +1)
        setTimeout(()=>{
            resolve(sino)
        },300)
    })
}

async function test(){
    let n =await cc()
    console.log(n)
}

test();


api.sendGet("/shortcut/list",{}).then(res=>{
	console.log(res);
})

api.sendPost("/auth/login",{ name:"lf",password:"123456" }).then(res=>{
	console.log(res);
})

console.log(d)